package types;

import control.WordInfo;

public class ComplementoAux {
	private WordInfo prep = null;
	private SubstantivoSimple sub;
	
	public ComplementoAux(WordInfo _sub, WordInfo _adj) {
		sub = new SubstantivoSimple();
		sub.setSub(_sub);
		sub.setAdj(_adj);
	}
	
	public void setPrep(WordInfo prep) {
		this.prep = prep;
	}
	public WordInfo getPrep() {
		return prep;
	}
	public void setSub(SubstantivoSimple sub) {
		this.sub = sub;
	}
	public SubstantivoSimple getSub() {
		return sub;
	}
	
	public String toString() {
		return prep.toString() + " " + sub.toString();
	}
}
